package cn.bonoon.util;

public final class DirectoryHelper {
	private DirectoryHelper() {
	}

	public final static String SHARE_PRIVATE_NAME = "私有";
	public final static String SHARE_PUBLIC_NAME = "公开";
	public final static String SHARE_PROTECTED_NAME = "共享";
	public final static String SHARE_UNDEFINED_NAME = "没定义";

	public final static int SHARE_PRIVATE = 0;
	public final static int SHARE_PUBLIC = 2;
	public final static int SHARE_PROTECTED = 1;
	public final static int SHARE_UNDEFINED = 3;

	public final static String[] SHARE_TYPES = { SHARE_PRIVATE_NAME,
			SHARE_PROTECTED_NAME, SHARE_PUBLIC_NAME, SHARE_UNDEFINED_NAME };

	public static String getTypeName(int i) {
		return (i >= 0 && i < SHARE_TYPES.length) ? SHARE_TYPES[i] : "";
	}
}
